package com.aishare.framework.ueditor.controller;

import com.aishare.framework.ueditor.ActionEnter;
import org.json.JSONException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;


@RestController
@RequestMapping("/ueditor")
public class UeditorController {

	@Autowired 
	private ActionEnter actionEnter;

	@RequestMapping("/upload")
	public String exe(HttpServletRequest request) throws JSONException {
		return actionEnter.exec(request);
	}
	
}
